<template>
    <div class="bag">
        <h2>我的</h2>
        <div class="nav">
            <div class="head " >
                <img src="../../img/grid-img2.png" class="imgs" @click="clickHandle">
                <van-cell value="" class="van" to="/aboutMine/myset">
                    <!-- 使用 title 插槽来自定义标题 -->
                    <template #title >
                        <span class="custom-title">单元格</span>
                        <br>
                        <van-tag type="danger">标签</van-tag>
                    </template>
                </van-cell>
                <img src="../../img/right.png" alt="" class="right-img" @click="clickHandle">
            </div>
        </div>

        <div class="threelink bsh">
            <van-grid clickable :column-num="3">
                <van-grid-item icon="guide-o" text="我的阅读" to="/aboutMine/mybook" />
                <van-grid-item icon="chat-o" text="我的评论" to="/aboutMine/mycritic" />
                <van-grid-item icon="coupon-o" text="优惠券" to="/aboutMine/myticket" />
            </van-grid>
        </div>


        <div class="routgo bsh">
            <!-- 第一个导航的地址，跳转到新的页面 -->
            <van-cell width="90%" title="书友汇" icon="user-circle-o" to="/aboutMine/friendgroup" is-link />
            <van-cell title="我的收藏" icon="star-o" to="/aboutMine/mylove" is-link />
            <van-cell title="关注主播" icon="user-o" to="/aboutMine/attention" is-link />
        </div>

        <div class="mix bsh">
            <van-cell title="帮助" icon="question-o" to="/aboutMine/help" is-link />
            <van-cell title="清除缓存" value="13Mb" size="large" />
            <van-cell title="版本 0520" value="V2.1.1" size="large" />
        </div>

    </div>
</template>

<script>
export default {
    //  点击后跳转到设置页面
    methods:{
        clickHandle(){
            this.$router.push('/aboutMine/myset')
        }
    }
}
</script>

<style lang="scss" scoped>
h2{
    margin-left: 20px;
}
.right-img{
    width: 20px;
    height: 20px;
    position: relative;
    top: 30px;
}
.imgs {
    width: 50px;
    height: 50px;
    position: relative;
    top: 10px;
    border-radius: 50%;
}
.van{
    background-color: #94cff1;
}

.custom-title {
    margin-right: 4px;
    vertical-align: middle;
}

.bag {
    height: 100%;
    background-color: rgb(242, 116, 219);
    position: relative;
    padding: 20px 0px;
    
}


.bsh {
    width: 90%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px plum;
    background: white;
}

.head {
    width: 100%;
    height: 150px;
    background-color: #94cff1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 auto;
}

.threelink {
    height: 90px;
    margin-left: 10px;
    position: absolute;
    top: 130px;
}

.routgo {
    margin-top: 20px;
    height: 132px;
    margin-top: 70px;
}

.mix {
    margin: 0 auto;
    margin-top: 20px;
    height: 140px;
}

.navu {
    display: flex;
    flex-direction: column;
    align-self: start;
}</style>